﻿@using VB.BusinessLogic.Models
@using VB.Common.Constants

@model VBBlog.Models.HomeModel

@{
    ViewBag.Title = "Home";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!-- Home page categories list -->
<div>

<!-- Empty message -->
@if (Model.Articles == null || Model.Articles.Count == 0)
{
    <div>@Constants.HomePageNoArticlesMessage</div>
}

<!-- The list -->
@Html.Partial("ArticlesPreview", Model.Articles)
</div>


